/*
 * 
 * the basic types of the features
 * 
 * Created on March 26, 2010, 10:10 PM
 * Copyright (C) 2010 HIT-CIR
 */
package nlpeap.feature.basictypes;

/**
 * The Enum GenderType.
 * 
 * @author chuter
 */
public enum GenderType { 
	
	/** The MALE. */
	MALE, 
	/** NEUTRAL type, like "it" */
	NEUTRAL,
	/** The FEMALE. */
	FEMALE, 
	/** PLURAL type, like "we, you, they etc." */
	PLURAL,
	/** male or female */
	BOTH,
	/** The UNKNOWN. */
	UNKNOWN;
	
	/** Gets theGenderType by given a string ID */
    public static GenderType getFromString(String genderString)
    {
        for (GenderType gender : GenderType.values())
        {
            if (genderString.equalsIgnoreCase(gender.name()))
            { return gender; }    
            
        }
         
        return null;
    }
}
